﻿namespace SmartPlant.Model
{
    public class NetworkFileInfo<T>
    {
        /// <summary>
        /// 文件名
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 文件类型。
        /// </summary>
        public string ContentType { get; set; }
        /// <summary>
        /// 文件内容
        /// </summary>
        public T Data { get; set; }
    }

    /// <summary>
    /// 用于描述上传、下载的文件信息
    /// </summary>
    public class NetworkFileInfo : NetworkFileInfo<byte[]>
    {

    }

    public class Base64NetworkFileInfo : NetworkFileInfo<string>
    {

    }
}
